/*
 * Created on Oct 21, 2003
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.recruiter.struts;

import org.vectrics.struts.MasterDetailDisplayForm;

import java.util.Collection;
import java.util.Vector;

public class JobSearchForm extends MasterDetailDisplayForm {
	
	private static final long serialVersionUID = 2719689831769745695L;
	
//	String searchPhrase = null;
	String referenceId = null;
	String location = null;
	String functionCode = null;
	String postedStartTime = "0";
	String createdStartTime = "0";
	String activeStatus = "posted";
	String companyId = null;
	String needApproval = null; 
	String title = null;
	String primaryRecruiter = null;
	String requester = null;
	
	String showActiveStatus = null;
	String showDescription = null;
	String showManager = null;
	String showRecruiter = null;
	String showBlock = null;
	String showLocation = null;
	String showCompany = null;
	String showCompanyCode = null;
	String showReferenceCode = null;
	String showPdfLink = null;
	String showApprovalGroup = null;
	
	Vector jobsFound = new Vector();
	
//	public void setSearchPhrase(String phrase) {
//		this.searchPhrase = phrase;
//	}
//	
//	public String getSearchPhrase() {
//		return(this.searchPhrase);
//	}
	
	public void setLocation(String location) {
		this.location = location;
	}
	
	public String getLocation() {
		return(this.location);
	}
	
	/**
	 * @return Returns the referenceId.
	 */
	public String getReferenceId() {
		return referenceId;
	}

	/**
	 * @param referenceId The referenceId to set.
	 */
	public void setReferenceId(String referenceId) {
		this.referenceId = referenceId;
	}

	public Collection getJobsFound() {
		return(jobsFound);
	}	
	
	public void setJobsFound(Collection jobsFound) {
		this.jobsFound.clear();
		this.jobsFound.addAll(jobsFound);
	}

	/**
	 * @return
	 */
	public String getFunctionCode() {
		return functionCode;
	}

	/**
	 * @param functionCode
	 */
	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}

	/**
	 * @return Returns the activeStatus.
	 */
	public String getActiveStatus() {
		return activeStatus;
	}
	/**
	 * @param activeStatus The activeStatus to set.
	 */
	public void setActiveStatus(String activeStatus) {
		this.activeStatus = activeStatus;
	}
	/**
	 * @return Returns the companyId.
	 */
	public String getCompanyId() {
		return companyId;
	}

	/**
	 * @param companyId The companyId to set.
	 */
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	/**
	 * @return Returns the showDescription.
	 */
	public String getShowDescription() {
		return showDescription;
	}
	/**
	 * @param showDescription The showDescription to set.
	 */
	public void setShowDescription(String showDescription) {
		this.showDescription = showDescription;
	}
	
	/**
	 * @return Returns the showManager.
	 */
	public String getShowManager() {
		return showManager;
	}
	
	/**
	 * @param showManager The showManager to set.
	 */
	public void setShowManager(String showManager) {
		this.showManager = showManager;
	}
	
	/**
	 * @return Returns the showRecruiter.
	 */
	public String getShowRecruiter() {
		return showRecruiter;
	}
	
	/**
	 * @param showRecruiter The showRecruiter to set.
	 */
	public void setShowRecruiter(String showRecruiter) {
		this.showRecruiter = showRecruiter;
	}
	/**
	 * @return Returns the showBlock.
	 */
	public String getShowBlock() {
		return showBlock;
	}
	/**
	 * @param showBlock The showBlock to set.
	 */
	public void setShowBlock(String showBlock) {
		this.showBlock = showBlock;
	}
	/**
	 * @return Returns the showLocation.
	 */
	public String getShowLocation() {
		return showLocation;
	}

	/**
	 * @param showLocation The showLocation to set.
	 */
	public void setShowLocation(String showLocation) {
		this.showLocation = showLocation;
	}

	/**
	 * @return Returns the showCompany.
	 */
	public String getShowCompany() {
		return showCompany;
	}

	/**
	 * @param showCompany The showCompany to set.
	 */
	public void setShowCompany(String showCompany) {
		this.showCompany = showCompany;
	}

	/**
	 * @return Returns the showCompanyCode.
	 */
	public String getShowCompanyCode() {
		return showCompanyCode;
	}

	/**
	 * @param showCompanyCode The showCompanyCode to set.
	 */
	public void setShowCompanyCode(String showCompanyCode) {
		this.showCompanyCode = showCompanyCode;
	}

	/**
	 * @return Returns the showReferenceCode.
	 */
	public String getShowReferenceCode() {
		return showReferenceCode;
	}

	/**
	 * @param showReferenceCode The showReferenceCode to set.
	 */
	public void setShowReferenceCode(String showReferenceCode) {
		this.showReferenceCode = showReferenceCode;
	}

	/**
	 * @return Returns the showActiveStatus.
	 */
	public String getShowActiveStatus() {
		return showActiveStatus;
	}

	/**
	 * @param showActiveStatus The showActiveStatus to set.
	 */
	public void setShowActiveStatus(String showActiveStatus) {
		this.showActiveStatus = showActiveStatus;
	}

	/**
	 * @return Returns the showPdfLink.
	 */
	public String getShowPdfLink() {
		return showPdfLink;
	}
	/**
	 * @param showPdfLink The showPdfLink to set.
	 */
	public void setShowPdfLink(String showPdfLink) {
		this.showPdfLink = showPdfLink;
	}

	/**
	 * @return Returns the createdStartTime.
	 */
	public String getCreatedStartTime() {
		return createdStartTime;
	}

	/**
	 * @param createdStartTime The createdStartTime to set.
	 */
	public void setCreatedStartTime(String createdStartTime) {
		this.createdStartTime = createdStartTime;
	}

	/**
	 * @return Returns the postedStartTime.
	 */
	public String getPostedStartTime() {
		return postedStartTime;
	}

	/**
	 * @param postedStartTime The postedStartTime to set.
	 */
	public void setPostedStartTime(String postedStartTime) {
		this.postedStartTime = postedStartTime;
	}

	/**
	 * @return Returns the needApproval.
	 */
	public String getNeedApproval() {
		return needApproval;
	}

	/**
	 * @param needApproval The needApproval to set.
	 */
	public void setNeedApproval(String needApproval) {
		this.needApproval = needApproval;
	}

	/**
	 * @return Returns the showApprovalGroup.
	 */
	public String getShowApprovalGroup() {
		return showApprovalGroup;
	}

	/**
	 * @param showApprovalGroup The showApprovalGroup to set.
	 */
	public void setShowApprovalGroup(String showApprovalGroup) {
		this.showApprovalGroup = showApprovalGroup;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the primaryRecruiter
	 */
	public String getPrimaryRecruiter() {
		return primaryRecruiter;
	}

	/**
	 * @param primaryRecruiter the primaryRecruiter to set
	 */
	public void setPrimaryRecruiter(String primaryRecruiter) {
		this.primaryRecruiter = primaryRecruiter;
	}

	/**
	 * @return the requester
	 */
	public String getRequester() {
		return requester;
	}

	/**
	 * @param requester the requester to set
	 */
	public void setRequester(String requester) {
		this.requester = requester;
	}
	
}
